
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(should be able to calculate Perimeter: side equals to 10)
	{
		Square square(10);
		ASSERT_EQ(40, square.calcPerimeter());
	}

	TEST(should be able to calculate Area: side equals to 8)
	{
		Square square(8);
		ASSERT_EQ(64, square.calcArea());
	}

       TEST(should be able to change side to get new Area: side value from 2 to 3, area from 4 to 9)
        {
                Square square(2);
                ASSERT_EQ(4, square.calcArea());
                square.setSide(3);
                ASSERT_EQ(9, square.calcArea());               
        }
};
